<?php
require '../$header.php';

$id = $DB->escape($_POST['ID']);

$return = array();

$DB->query("
	SELECT *
	FROM spot
	WHERE ID = '{$id}'
");

if($DB->num() != 1)
{
	$return['Error'] = "This Spot Doesn't Exist!";
	$error = true;
}

if($DB->num() > 0)
{
	while($fetch = $DB->fetch())
	{
		$return[] = $fetch;
	}
}

echo json_encode($return);

require '../$footer.php';
?>